package ${package.Entity};

import com.book.modules.core.entity.DataEntity;
import java.util.Date;
import java.math.BigDecimal;
import java.io.Serializable;
import lombok.Data;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.EqualsAndHashCode;

/**
 * Description：${table.comment!} Entity
 * @Author： ${author}
 * @CreateDate： ${date}
 * @Email： ${cfg.email}
 * Version: ${cfg.version}
 */
@Data
@TableName("${table.name}")
@EqualsAndHashCode(callSuper = true)
public class ${table.entityName} extends DataEntity<${table.entityName}> implements Serializable {
<#if entitySerialVersionUID>
    private static final long serialVersionUID = 1L;
</#if>
<#-- ----------  BEGIN 字段循环遍历  ---------->
<#list table.fields as field>
    <#if field.propertyName!="id" && field.propertyName!="status" && field.propertyName!="remarks" && field.propertyName!="version" && field.propertyName!="createBy" && field.propertyName!="createDate" && field.propertyName!="createName"  && field.propertyName!="updateName" && field.propertyName!="updateBy" && field.propertyName!="updateDate">
    /**
     * ${field.comment}
    **/
    @TableField("${field.name}")
        <#if field.propertyType == "LocalDateTime">
    private Date ${field.propertyName};
        <#elseif field.type == "decimal" || field.type == "numeric">
    private BigDecimal ${field.propertyName};
        <#else>
    private ${field.propertyType} ${field.propertyName};
        </#if>
    </#if>
</#list>
}
